! function (a) {
    function b() {
        var w = f.getBoundingClientRect().width;
        console.log(w);
        if (w > 475) {
            w = 475;
            setTimeout(function () {
                document.querySelector('body').style = "width:16rem;margin:0 auto;";
            }, 0);
        }
        a.rem = w / 16, f.style.fontSize = a.rem + "px";
        var j = parseFloat(a.getComputedStyle(f, null).fontSize);
        if (a.rem != j) {
            a.rem = a.rem * a.rem / j;
            f.style.fontSize = a.rem + "px"
        }
    }
    var c, d = a.navigator.appVersion.match(/iphone/gi) ? a.devicePixelRatio : 1,
        e = 1,
        f = document.documentElement,
        g = document.createElement("meta");
    if (a.dpr = d, a.addEventListener("resize", function () {
            clearTimeout(c), c = setTimeout(b, 300)
        }, !1), a.addEventListener("pageshow", function (a) {
            a.persisted && (clearTimeout(c), c = setTimeout(b, 300))
        }, !1), f.firstElementChild) f.firstElementChild.appendChild(g);
    else {
        var h = document.createElement("div");
        h.appendChild(g), document.write(h.innerHTML)
    }
    b()
}(window);